//
//  LoginView.m
//  UI 作业 - 豆瓣电影
//
//  Created by hesiyao on 15/12/23.
//  Copyright © 2015年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "LoginView.h"
#import "registerViewController.h"
@interface LoginView ()
- (IBAction)registerButton:(UIButton *)sender;
- (IBAction)loginButton:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UITextField *userName;
@property (weak, nonatomic) IBOutlet UITextField *passWord;

@end
@implementation LoginView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)registerButton:(UIButton *)sender {
    

    [self.delegate push];
    
}

- (IBAction)loginButton:(UIButton *)sender {
    [self.delegate login:_userName.text pass:_passWord.text];
}
@end
